package cn.huiyunche.base.service.enums;

public enum BFeeModelEnum {
    //	ORDER(10,"订单费用模型"),//订单
//	WAYBILL(20,"运单费用模型"),
    INTERCITY_ORDER(10, "城际版订单费用模型"),//订单
    INTERCITY_WAYBILL(20, "城际版运单费用模型"),//运单
    CITYWIDE_ORDER(30, "城际版订单费用模型"),
    CITYWIDE_WAYBILL(40, "城际版运单费用模型");


    private final int value;
    private final String text;

    BFeeModelEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static BFeeModelEnum getByValue(int value) {
        for (BFeeModelEnum temp : BFeeModelEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
